package com.study.userserviceprovider.configuration;

import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;

/**
 * 此类描述的是：使用新的ribbon配置替代默认ribbon配置
 * @author: 李军容
 * @version: 2020/11/19 18:16
 */
@RibbonClients(defaultConfiguration = RibbonClientDefaultConfigurationTestsConfig.FooConfiguration.class)
public class RibbonClientDefaultConfigurationTestsConfig   {

    @Configuration(proxyBeanMethods = false)
    class FooConfiguration {
      /*  @Bean
        public IPing ribbonPing() {
            return new PingUrl();
        }

        @Bean
        public IRule rule() {
            return new RoundRobinRule();
        }*/


    }



}
